package com.neuedu.dao.impl;

import com.neuedu.dao.AddXiaoquNumberDao;
import com.neuedu.model.AddXiaoquNumber;
import com.neuedu.utils.DbUtil;

import java.util.List;

/**
 * @author 许中
 * @date 2024-09-10 10:52:35
 */
public class AddXiaoquNumberDaoImpl implements AddXiaoquNumberDao {
    @Override
    public AddXiaoquNumber select() {
        List<AddXiaoquNumber> list = DbUtil.select(AddXiaoquNumber.class, "id=?", 1);
        if (list != null && list.size() > 0) {
            return list.get(0);
        }
        return null;
    }

    @Override
    public int update(AddXiaoquNumber addXiaoquNumber) {
        return DbUtil.update(addXiaoquNumber,"id=?",1);
    }
}
